<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Vue生命周期</title>
    <script src="../js/vue2.js"></script>
</head>
<body>
    <div id="app">

    </div>
</body>
<script>
    new Vue({
        el:"#app",
        data() {
            
        },
        methods: {
            
        },
        beforeCreate() {
            alert("beforeCreate");
        },
        mounted() {
            alert("Vue挂载完成，发送请求到服务端");
        },

    })
</script>
</html>